#include "header.h"

static pthread_mutex_t printf_mutex;

void sync_printf(const char *format, ...) {
  va_list args;
  va_start(args, format);

  pthread_mutex_lock(&printf_mutex);
  vprintf(format, args);
  pthread_mutex_unlock(&printf_mutex);

  va_end(args);
}
